package com.questionnaire.controller;


import com.cloud.beans.ResultBean;
import com.questionnaire.pojo.User;

import com.questionnaire.service.UserService;
import org.springframework.beans.factory.annotation.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class UserController {

    @Autowired
    private UserService userService;



    @RequestMapping(value = "test")
    @ResponseBody
    public ResultBean<User> get(){
        User user = userService.find("2f5bc914-7ff5-1d58-f6b2-6de17a6f00c4");
        return new ResultBean<User>(user);
    }

    @RequestMapping(value = "/login")
    public String login() {
        return "login";
    }

}
